package com.hello.prac.service;

import com.hello.prac.config.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * HelloService
 * 不主动注入容器，交给配置类处理
 *
 * @author H
 * @version 1.0
 * @date 2023-11-22 13:42
 */
public class HelloService {
    @Autowired
    private HelloProperties helloProperties;

    public String sayHello(String name) {
        return helloProperties.getPrefix() + ":" + name + ">>>" + helloProperties.getSuffix();
    }


}
